package com.xintonghua.bussiness.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 作者：wanxianyi
 * 时间：2018/3/31.
 * 包名：com.xintonghua.bussiness.bean
 */

public class GoodsListBean implements Parcelable {


    /**
     * goods_name : 潘婷洗发水
     * goods_count : 20
     * goods_money : 68
     * goods_img : null
     */

    private String goods_name;
    private int goods_count;
    private double goods_money;
    private String goods_img;

    public String getGoods_name() {
        return goods_name;
    }

    public void setGoods_name(String goods_name) {
        this.goods_name = goods_name;
    }

    public int getGoods_count() {
        return goods_count;
    }

    public void setGoods_count(int goods_count) {
        this.goods_count = goods_count;
    }

    public double getGoods_money() {
        return goods_money;
    }

    public void setGoods_money(double goods_money) {
        this.goods_money = goods_money;
    }

    public String getGoods_img() {
        return goods_img;
    }

    public void setGoods_img(String goods_img) {
        this.goods_img = goods_img;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.goods_name);
        dest.writeInt(this.goods_count);
        dest.writeDouble(this.goods_money);
        dest.writeString(this.goods_img);
    }

    public GoodsListBean() {
    }

    protected GoodsListBean(Parcel in) {
        this.goods_name = in.readString();
        this.goods_count = in.readInt();
        this.goods_money = in.readDouble();
        this.goods_img = in.readString();
    }

    public static final Parcelable.Creator<GoodsListBean> CREATOR = new Parcelable.Creator<GoodsListBean>() {
        @Override
        public GoodsListBean createFromParcel(Parcel source) {
            return new GoodsListBean(source);
        }

        @Override
        public GoodsListBean[] newArray(int size) {
            return new GoodsListBean[size];
        }
    };
}
